Former2

Former2 allows you to generate IaC (ex. CloudFormation templates) from existing resources https://github.com/iann0036/former2


TaskCat

A tool that automates the testing of CloudFormation templates https://github.com/aws-quickstart/taskcat


cfn-nag

A tool that looks for patterns in CloudFormation templates that may indicate insecure infrastructure https://github.com/stelligent/cfn_nag

Examples:

CloudFormation cheatsheet

Summarizes the usage of !Ref and !GetAtt with CloudFormation resources https://theburningmonk.com/cloudformation-ref-and-getatt-cheatsheet/


aws-cfn-template-flip

A tool that converts CloudFormation templates between JSON and YAML formats https://github.com/awslabs/aws-cfn-template-flip


cfn-diagram

A tool to visualize CloudFormation/SAM/CDK templates as diagrams https://github.com/mhlabs/cfn-diagram


cfn-format

A tool that reads a CloudFormation template and outputs a cleanly-formatted copy adhering to CloudFormation standards https://github.com/awslabs/aws-cloudformation-template-formatter


awesome-cloudformation

Reference list for open-source projects related to CloudFormation: https://github.com/aws-cloudformation/awesome-cloudformation